/* ==========================================================================
   HTML5 Boilerplate Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}
body {
    font-size: 1em;
    line-height: 1.4;
}
/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations have to be separate.
 * Customize the background color to match your design.
 */
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}
::selection {
    background: #b3d4fc;
    text-shadow: none;
}
/*
 * A better looking default horizontal rule
 */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
/*
 * Remove the gap between images and the bottom of their containers: h5bp.com/i/440
 */
img {
    vertical-align: middle;
}
/*
 * Remove default fieldset styles.
 */
fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}
/*
 * Allow only vertical resizing of textareas.
 */
textarea {
    resize: vertical;
}
/* ==========================================================================
   Main page styles
   ========================================================================== */

/*  layout for header
--------------------------------------------------- */
header {
  margin: 1em;
  font-size: 1em;
}
#logo {
  display: inline-block;
}
#logo > h1 {
  margin: 0;
  font-size: 1.6em;
}
#logo-subtitle {
  visibility: hidden;
}
#learnerDataForm {
  display: inline-block;
  position: absolute; right: 2%;
}
#learnerData {
}
button#editLearnerData {
}

/*  Images
--------------------------------------------------- */
img#ari-smiling {
  display: block;
  position: absolute; bottom: 10%; left: 40%;
  visibility: visible;
}
img#ari-smiling.hide {
  visibility: hidden;
}
img#ari-disappointed {
  display: block;
  position: absolute; bottom: 10%; left: 40%;
  visibility: hidden;
}
img#ari-disappointed.show {
  visibility: visible;
}
img#ari-worried {
  display: block;
  position: absolute; bottom: 10%; left: 40%;
  visibility: hidden;
}
img#ari-worried.show {
  visibility: visible;
}
img#tito {
  display: block;
  position: absolute; bottom: 10%; left: 40%;
  visibility: hidden;
}
img#tito.show {
  visibility: visible;
}

/*  Learning Unit Selection
--------------------------------------------------- */
#learningUnitSelection {
  position: fixed; top: 10%; left: 10%;
  width: 90%; 
  height: 70%;
}
#learningUnitSelection h1 {
  font-size: 1em;  /* decrease */
  margin: 0px;
}
#learningUnitSelection p {
  margin: 0px;
  font-size: 1.2em;  /* increase */
}
#learningUnitSelection>div {
  font-size: 1.2em;  /* increase */
  display: inline-block;
  height: 90%;
}
#learningUnitSelection ul {
  height: 90%;
  list-style-type: none;
  padding-left: 0;
  overflow: auto;
}
#learningUnitSelection ul>li:hover, #showAll:hover {
  background-color: hsl(0, 0%, 83%);
  cursor: pointer;
}
#learningUnitSelection ul>li.selected {
  background-color: hsl(0, 0%, 83%);
}
#grades {  
  display: inline-block;
  text-align: center;
}
#grades.hide {  
  display: none;
}
#subjectAreas {  
  display: inline-block;
}
#learningUnits {  
  display: inline-block;
  width: 50%;
}
#showAll {
  position: absolute; bottom: 5%; left: 0%;
  color: grey;
  font-size: smaller;
}
#learningUnitSelection.hide {
  display: none;
}

/*  Session Info
--------------------------------------------------- */
#sessionInfo {
  font-size: 2em;
  text-align: center;
  margin-bottom: 3%;
  display: none;
}
#sessionInfo.show {
  display: block;
}
#sessionInfo>h1 {
  margin: 0 0;
  font-size: 0.6em;
  font-weight: normal;
  color: grey;
}
#sessionInfo>h2 {
  /* display: none; */
  margin: 0 0;
  font-size: 0.5em;
  font-weight: normal;
  color: grey;
}
#labelPercentageCorrect {
  margin-left: 1em;
}
#percentageCorrect {
  margin-left: 0.5em;
}
/*  Render box
--------------------------------------------------- */
#renderBox {
  position: fixed; top: 30%; left: 15%; 
  width: 70%;
  min-height: 70%;
  display: none;
}
#renderBox.show {
  display: block;
  text-align: center;
  vertical-align: middle;
}

.askedFor {
  font-size: 1em;
  color: blue;
}
#askedForNum {
  font-size: 1em;
  color: blue;
  margin-right: 10px;
}
#askedForDenom {
  font-size: 1em;
  color: blue;
  margin-right: 10px;
}
input[type=number] {
  width: 1.5em;
  padding: 5px;
}
#submitButton {
  display: inline-block;
  font-size: 2rem; 
  margin-left: 2em;
}
.correct {
  /* GW: outline rotation is not properly supported in FF in Aug-2012 */
  /* outline: green solid thick; */
  border: green solid thick;
  -moz-transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out; 
  -moz-transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
  -o-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
}
.false {
  outline: red solid thick;
}
.given {
  outline: yellow solid thick;
}

#exerciseHelpText {
  position: absolute; top: 70%; left: 15%; 
  width: 70%;
  text-align: center;
  font-size: 2em;
  display: none;
}

div#help-quit {
  position: absolute; right: 10%; bottom: 7%;
  display: none;
}
button#help {
  visibility: hidden;
  margin-right: 1em;
}


/* -------------------------------------- */
#SvgNode {
	width: 45%;	
	height: 110px;
	position: relative;
	left: 1em;
	display: inline;
}

/* ==========================================================================
   HTML5 Boilerplate Helper classes
   ========================================================================== */
/*
 * Image replacement
 */
.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}
.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}
/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */
.hidden {
    display: none !important;
    visibility: hidden;
}
/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */
.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}
/*
 * Hide visually and from screenreaders, but maintain layout
 */
.invisible {
    visibility: hidden;
}
/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */
.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.clearfix:after {
    clear: both;
}
/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */
.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 38em) {
  /* Style adjustments for viewports that meet the condition */
  #learningUnitSelection h1 {
    font-size: 1.1em;  /* decrease */
  }
  #learningUnitSelection>div {
    font-size: 1.3em;  /* increase */
  }
}

@media only screen and (min-width: 56em) {
  /* Style adjustments for viewports that meet the condition */
  #logo-subtitle {
    visibility: visible;
  }
  #learningUnitSelection {
    left: 20%;
    width: 80%; 
  }
  #learningUnitSelection h1 {
    font-size: 1.2em;  /* decrease */
  }
  #learningUnitSelection>div {
    font-size: 1.4em;  /* increase */
  }
  #subjectAreas, #learningUnits {  
    margin-left: 2em;
  }
  img#ari-smiling {
    position: absolute; top: 20%; left: 1%;
  }
  img#ari-disappointed {
    position: absolute; top: 20%; left: 1%;
  }
  img#ari-worried {
    position: absolute; top: 20%; left: 1%;
  }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}